
/*
	(c) Galustyan Sergey 2009
*/

#pragma once
#include "Lib.h"

namespace TestTask
{
	typedef float LandscapeData[landx][landy];
	void generateLandscape( LandscapeData );
	hres generateLandscapeView( LandscapeData, PDevice, PMesh& );

	class LandscapeRender:public RenderObject,public Border
	{
		public:
			LandscapeRender( PDevice device );
	
			PTexture GetHeightTexture();
			void	 GetMoveHere( const Vector3& pos, Vector3& suggest );

		private:
			LandscapeData	data;
			PTexture		heightMap;
	};

	declaresmart( LandscapeRender )
}